<template>
  <div class="popular">
    <!-- 轮播图 -->
    <van-swipe class="my-swipe" :autoplay="3000" indicator-color="#1baeae">
      <van-swipe-item v-for="(item, index) in images" :key="index">
        <img class="swipe-img" :src="item" alt="" />
      </van-swipe-item>
    </van-swipe>
    <!-- 轮播图下的标签 -->
    <div class="home-characteristic">
      <ul>
        <li>大牌品质</li>/
        <li>工厂价格</li>/
        <li>分期支付</li>/
        <li>顺丰包邮</li>/
        <li>无忧退款</li>
      </ul>
    </div>
    <!-- 测试 -->
    <div class="test"></div>
  </div>
</template>

<script>
export default {
  data () {
    return {
      images: ['https://bfs.biyao.com/group1/M01/1C/6F/rBACW2HuYziAal-wAABPLY00yFU837.jpg', 'https://bfs.biyao.com/group1/M01/1B/B6/rBACVGHw42iAEgwoAAA2zbYPrdE614.jpg', 'https://bfs.biyao.com/group1/M01/0B/EF/rBACYWHYSVmARBTOAABQVUcNYPw697.jpg']
    }
  }
}
</script>

<style lang="less">
.popular {
  background-color: #f4f4f4;
}
.test {
  width: 100%;
  height: 100px;
  background-color: #8df;
  margin-top: 20px;
}
.my-swipe .van-swipe-item {
  color: #fff;
  font-size: 20px;
  height: 150px;
  text-align: center;
}
.swipe-img {
  width: 100%;
  height: 100%;
}
.home-characteristic {
  background-color: #fff;
  padding-top: 3px;
  ul {
    display: flex;
    color: #9687a4;
    font-size: 12px;
    li {
      flex: 1;
      padding-left: 5px;
      padding-right: 5px;
      text-align: center;
    }
  }
}
</style>
